package cn.qw.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.qw.dao.DepartmentMapper;
import cn.qw.pojo.Department;
@Service
public class DepartmentService{

    @Autowired
    private DepartmentMapper departmentMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return departmentMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Department record) {
        return departmentMapper.insert(record);
    }

    
    public int insertSelective(Department record) {
        return departmentMapper.insertSelective(record);
    }

    
    public Department selectByPrimaryKey(Integer id) {
        return departmentMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(Department record) {
        return departmentMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Department record) {
        return departmentMapper.updateByPrimaryKey(record);
    }

}
